package com.micro.service.annotation;

import com.micro.service.commomEnum.QueryType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Create by Vic Xu on 2019/3/9
 * type:查询类型
 * attribute： 查询属性, null则根据字段查询
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface QueryField {

    QueryType type() default QueryType.EQUALS;

    String attribute() default "";
}
